package com.qiqidream.admin.common.base;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author QiQiDream
 * @since  2019/12/4 17:28
 */
@Data
public class BaseEntity {
    /** id */
    @TableId(type = IdType.ID_WORKER)
    private Long id;

    /** 逻辑删除标识 */
    @TableField(value = "is_deleted",fill = FieldFill.INSERT)
    @TableLogic
    private Boolean deleted;

    /** 更新时间 */
    @TableField(value = "update_date",fill = FieldFill.INSERT_UPDATE)
    private Date updateDate;

    /** 创建时间 */
    @TableField(value = "create_date",fill = FieldFill.INSERT)
    private Date createDate;
}
